package com.zuoye.zuoye4;

public class Car {
    private String model;
    private String plate;

    public Car() {
    }

    public Car(String model, String plate) {
        this.model = model;
        this.plate = plate;
    }

    public void start(){
        System.out.println("车已启动");
    }
    public void stop(){
        System.out.println("车已停止");
    }

    public String getModel() {
        return model;
    }

    public void setModel(String model) {
        this.model = model;
    }

    public String getPlate() {
        return plate;
    }

    public void setPlate(String plate) {
        this.plate = plate;
    }
}
